<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" href="../stylesheets/swiper/swiper.min.css">
    <link rel="stylesheet" href="../stylesheets/tv/neimeng.css">
    <link rel='stylesheet' href='../stylesheets/global/index.css' />
    <link rel='stylesheet' href='../stylesheets/global/alertPlus.css' />
    <title>冰雪节</title>
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?6dc95a5f5f110c0edeaefd085191b340";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </head>
  <body>
    <div class="container">
      <img src="../images/tv/neimeng_bg.png" alt="" class="img-bg-neimeng">
      <div class="video-box">
        <img src="../images/tv/tv_poster.png" alt="" class="img-tv-poster video-btn">
        <video src="http://video.lalocal.cn/h5/nmghd.mp4" controls="controls" class="video-big video-btn" id="tv"></video>
      </div>
      <img src="../images/tv/download_app.png" alt="" class="img-btn-download">
      <img src="../images/tv/share_friend.png" alt="" class="img-btn-share">
      <img src="../images/tv/tv_1.jpg" alt="" class="tv-poster-1 tv-1">
      <video src="http://video.lalocal.cn/h5/elsxcday3.mp4" controls="controls" class="video-1 tv-1" id="tv1"></video>
      <img src="../images/tv/tv_2.jpg" alt="" class=" tv-poster-2 tv-2">
      <video src="http://video.lalocal.cn/h5/bxndmday1.mp4" controls="controls" class="video-2 tv-2" id="tv2"></video>
      <img src="../images/tv/tv_3.jpg" alt="" class=" tv-poster-3 tv-3">
      <video src="http://video.lalocal.cn/h5/xmdsday2.mp4" controls="controls" class="video-3 tv-3" id="tv3"></video>
      <img src="../images/tv/tv_4.png" alt="" class=" tv-poster-4 tv-4">
      <video src="http://video.lalocal.cn/h5/ghaxjlday4.mp4" controls="controls" class="video-4 tv-4" id="tv4"></video>
      <img src="../images/tv/tip.png" alt="" class="img-tip img-move">
      <div class="view-box swiper-container">
        <div class="swiper-wrapper">
          <img class="swiper-slide" src="../images/tv/view_6.jpg">
          <img class="swiper-slide" src="../images/tv/view_1.jpg">
          <img class="swiper-slide" src="../images/tv/view_2.jpg">
          <img class="swiper-slide" src="../images/tv/view_3.jpg">
          <img class="swiper-slide" src="../images/tv/view_4.jpg">
          <img class="swiper-slide" src="../images/tv/view_5.jpg">
          <img class="swiper-slide" src="../images/tv/view_7.jpg">
        </div>
      </div>
      <div class="swiper-pagination"></div>
      <img src="../images/tv/attention_zhubo.png" alt="" class="img-btn-zhubo">
        <div class="comment-box">
          <section class="sec-comments">
            <p class="p-sec-title">评论</p>
            <div class="box-input">
                <input type="text" class="ipt-comment" id="ipt-comment" placeholder="我也来说一句：">
              <button class="btn-send">发送</button>
            </div>
            <button class="btn-new-msg hide">有新的评论，点击查看</button>
            <div class="comments-list">
            <% if(rows.length!=0){
              rows.forEach(function(el) {%>
                <div class="box-comment" value="<%=el.id%>" nickname="<%=el.user.nickName%>">
                  <div class="box-comment-usr">
                    <img src="<%=el.user.avatar%>" alt="" class="img-comment-avatar">
                    <div class="box-comment-nick">
                      <p class="p-comment-name"><%=el.user.nickName%>
                      <%if(el.targetUser!=null){%>
                      <span class="color-grey"> 回复 </span><span><%=el.targetUser.nickName%></span>
                      <%}%>
                    </p>
                      <p class="p-comment-time"><%=el.dateTime%></p>
                    </div>
                  </div>
                  <div class="box-comment-main">
                    <p class="p-comment-main"><%=el.content%></p>
                  </div>
                </div>
              <%})}%>
            </div>
            <button class="btn-more-comments">查看更多评论</button>
          </section>
        </div>
        <div class="share-box">
          <img src="../images/tv/share_tip.png" alt="" class="img-share-tip">
        </div>
    </div>
  </body>
  <script src="../javascripts/jquery-1.10.1.min.js"></script>
  <script src="../javascripts/jweixin-1.0.0.js"></script>
  <script src="../javascripts/swiper/swiper.min.js"></script>
  <script type="text/javascript">
  var shareData = {
    title : '乐可旅行带你感受林海雪原呼伦贝尔',
    desc : '一个视频带你领略呼伦贝尔冬日主流玩法。四个小视频细分不同场景下的精彩瞬间。',
    imgUrl : '<%=browserUrl%>'+'/images/tv/share.png',
    link : '<%=browserUrl%>'+'/tv/neimeng',
  };
  var wxConfig = {
    appId : '<%=wxConfig.appId%>',
    timestamp : '<%=wxConfig.timestamp%>',
    nonceStr : '<%=wxConfig.nonceStr%>',
    signature : '<%=wxConfig.signature%>'
  }

  var swiper = new Swiper('.swiper-container', {
      pagination: '.swiper-pagination',
      effect: 'cube',
      grabCursor: true,
      cube: {
          shadow: true,
          slideShadows: true,
          shadowOffset: 20,
          shadowScale: 0.94
      }
  });

  // 判断是否为微信
  function isWechat() {
    var ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
      return true;
    }
    else {
      return false;
    }
  }

  var isPhone = '<%=isWechat%>';
  var wxUserInfo = {};
  var totalRows = <%=totalRows%> || 10;
  var totalPages = <%=totalPages%> || 1;
  var targetType = <%=commentInfo.type%>;
  var targetId = <%=commentInfo.id%>;
  if(isWechat()){
    wxUserInfo.nickname = '<%=userInfo.nickname%>';
    wxUserInfo.headimgurl = '<%=userInfo.headimgurl%>';
    wxUserInfo.openid = '<%=userInfo.openid%>';
    wxUserInfo.unionid = '<%=userInfo.unionid%>';
  }
  var isApp = '<%=isApp%>';
  </script>
  <script src="../javascripts/global/alertPlus.js"></script>
  <script src="../javascripts/global/ajax_wechat.js"></script>
  <script src="../javascripts/global/index.js"></script>
  <script src="../javascripts/tv/neimeng.js"></script>
  <script src="../javascripts/base.js"></script>
</html>
